package com.example.filesftp.ftptransfer.service;


import com.example.common.core.util.R;
import com.example.filesftp.ftptransfer.domain.entity.FileTransferConfig;
import org.springframework.http.ResponseEntity;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.time.LocalDate;
import java.util.List;

public interface FileSftpService {
//    /**
//     *ftp从111获取夸父版本功率预测文件
//     */
//    R getForeFileAndUpload(LocalDate date);
//
//    /**
//     *  上传到指定ftp目录
//     */
//    R uploadCsvFileToFtp(LocalDate date);

    List<FileTransferConfig> getAllConfigs();

    FileTransferConfig getConfigById(String id);

    FileTransferConfig saveConfig(FileTransferConfig config) throws Exception;

    void deleteConfig(String id);

    void triggerJob(String id);

    void rescheduleAllJobs();

    void downloadUserManual(HttpServletRequest request,HttpServletResponse response) throws IOException;
}
